{template modoer_header}
<script type="text/javascript" src="{URLROOT}/static/javascript/validator.js"></script>
<div id="body">
<div class="link_path"><a href="{url modoer/index}">首页</a>&nbsp;&raquo;&nbsp;登录</div>
<div class="mainrail rail-border-1">
    <h1 class="rail-h-1 rail-h-bg-1">登录</h1>
    <div class="post">
        <div style="float:left;margin-bottom:10px;width:68%;border-right:1px solid #eee;">
            <form method="post" action="$form_action" onsubmit="return validator(this);">
                <!--{if $passport}-->
                <input type="hidden" name="passport" value="$passport_type">
                <input type="hidden" name="passport_id" value="$passport_id">
                <!--{/if}-->
                <table class="table" cellspacing="0" cellpadding="0" style="margin:10px 0;">
                    <!--{if $title}-->
                    <tr>
                        <td align="right"></td>
                        <td width="*" height="30">$title</td>
                    </tr>
                    <!--{/if}-->
                    <tr>
                        <td align="right" width="100">用户名：</td>
                        <td width="*"><input type="text" name="username" class="t_input" style="width:200px;" validator="{'empty':'N','errmsg':'请填写您的登录用户名。'}" /></td>
                    </tr>
                    <tr>
                        <td align="right">密码：</td>
                        <td><input type="password" name="password" class="t_input" style="width:200px;" validator="{'empty':'N','errmsg':'请填写您的登录密码。'}" /></td>
                    </tr>
                    <!--{if S('member:seccode_login')}-->
                    <tr>
                        <td align="right" valign="top">验证码：</td>
                        <td>
                            <!--{if S('seccode_type')=='geetest' }-->
                            <!--{print ms_geetest::float()}-->
                            <!--{else}-->
                            <div id="seccode" class="none" style="float:left;width:80px;position:relative;top:-3px;"></div>
                            <input type="text" name="seccode" class="t_input" style="width:118px;" onblur="check_seccode(this.value);" onfocus="show_seccode();" validator="{'empty':'N','errmsg':'请输入注册验证码'}" />
                            <span id="msg_seccode" class="formmessage none"></span>
                            <!--{/if}-->
                        </td>
                    </tr>
                    <!--{/if}-->
                    <tr>
                        <td align="right"></td>
                        <td><input type="checkbox" name="life" id="life" value="2592000" /><label for="life">记住密码(30天)</label></td>
                    </tr>
                    <tr>
                        <td><input type="hidden" name="forward" value="$forward" /></td>
                        <td><button type="submit" name="onsubmit" value="yes" class="button">登录</button></td>
                    </tr>
                </table>
            </form>
        </div>
        <div style="float:right;width:30%;font-size:14px;color:#808080;">
            <div class="mb10">还没有帐号？<a href="{url member/reg}">现在注册</a></div>
            <div class="mb10">忘记密码了？<a href="{url member/forget}">找回密码</a></div>
            <div class="mb10"><a href="javascript:" id="weixin_qrcode"><img src="{URLROOT}/static/images/passport/weixin_n.png" style="margin-right:2px;" />微信扫一扫登录</a></div>
            <!--{if $_G['passport_apis']}-->
            <div class="mb10">
                <span>使用合作网站帐号登录：</span><br />
                <div class="mt10">
                    <!--{loop $_G['passport_apis'] $passport_name $passport_title}-->
                        <span style="cursor:pointer; margin-top:5px;">
                            <span onclick="document.location='{url member/login/op/passport_login/type/$passport_name}';" title="$passport_title">
                                <img src="{URLROOT}/static/images/passport/{$passport_name}_n.png" style="margin-right:2px;" />
                            </span>
                        </span>
                    <!--{/loop}-->
                </div>
            </div>
            <!--{/if}-->
        </div>
        <div class="clear"></div>
    </div>
</div>
</div>
<script>
$(document).ready(function() {
    $('#weixin_qrcode').click(function(event) {
        show_wexin_qrcode();
    });
    function show_wexin_qrcode() {
        var src = Url("weixin/login_qrcode");
        var content = $('<div></div>');
        var iframe = $("<iframe></iframe>").attr('src',src).attr({
                'frameborder':'no','border':'0','marginwidth':'0','marginheight':'0','scrolling':'no','allowtransparency':'yes'
            }).css({"width":"100%","height":"300px"});
        content.append(iframe);
        dlgOpen('微信扫一扫',content,310);
        if($.browser.msie && $.browser.version.substr(0,1)=='6' ) {
            window.setTimeout(function() {
                iframe.attr('src', src);
            },1200);
        }
    }
});
</script>
<!--{eval footer();}-->